Don't free a GFile. Reported by Sebastien Bacher
authorMatthias Clasen <matthiasc@src.gnome.org>
Wed, 16 Jul 2008 13:51:56 +0000 (13:51 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Wed, 16 Jul 2008 13:51:56 +0000 (13:51 +0000)
        * gtk/gtkfilesystem.c (_gtk_file_system_set_bookmark_label): Don't
        free a GFile. Reported by Sebastien Bacher

svn path=/trunk/; revision=20843

ChangeLog
gtk/gtkfilesystem.c

index 6a5d882bd574fe7fd630ff4fda3955933c1bc946..41280b3e05b4b08dffd08d6dac7a341294887922 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2008-07-15  Matthias Clasen  <mclasen@redhat.com>
+
+       Bug 543244 – crashes when renaming a bookmark
+
+       * gtk/gtkfilesystem.c (_gtk_file_system_set_bookmark_label): Don't
+       free a GFile. Reported by Sebastien Bacher
+
 2008-07-15  Matthias Clasen  <mclasen@redhat.com>
 
        Bug 339591 – Detect list of availible cover pages
index 8f8e9c83318b2c76dd3f0e5048a2c3421c73e7fa..c462b3f444f1820fc49a31290e9f9d4d68bfd86f 100644 (file)
@@ -1127,7 +1127,7 @@ _gtk_file_system_set_bookmark_label (GtkFileSystem *file_system,
 
       if (g_file_equal (file, bookmark->file))
        {
-         g_free (bookmark->file);
+          g_free (bookmark->label);
          bookmark->label = g_strdup (label);
          changed = TRUE;
          break;